<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>选择器续</title>
    <style>
        /*body div div p{ color: red}*/
        body>div>div>p{
            color: red;}


    </style>

</head>
<body>
<p>p1</p>
<div><p>p2</p></div>
<div>
    <div>
        <p>p3</p>
    </div>
    <div>
        <div>
            <p>p4</p>
        </div>
    </div>
</div>
</body>
</html>